home *** CD-ROM | disk | FTP | other *** search
Wrap
on 1:TEXT:-bible:#:msg $chan To use C-Script's Bible type -kjv [book] [verse] Example: -kjv John 3:16 OR -kjv Isa 40:30-31 on +1:TEXT:-help:*: { msg $nick To use C-Script's Bible type -kjv [book] [verse] Example: -kjv John 3:16 OR -kjv Isa 40:30-31 msg $nick Level 1 Commands: %CMNDS1 } alias bible say To use C-Script's Bible type -kjv [book] [verse] Example: -kjv John 3:16 OR -kjv Isa 40:30-31 alias biblehelp echo 3 -a Owner Usage: /kjv [book] [verse] | echo 3 -a Other users will use "-kjv [book] [verse]" | if ($findfile($mircdir\AddOns\Bible\kjv,1jo.txt,1) == $null) { echo 4 -a BibleBot verse files not found! | echo 4 -s If you want to be able to use the BibleBot to recite Bible verses you must download the Bible verse files at http://www.c-script.com/download.htm } #kjv on on 1:JOIN: { if ($group(#autogreet) == on) { .notice $nick I am using C-Script-Bible, available at http://www.c-script.com/ .notice $nick To use me type -kjv [book] [verse] Example: -kjv John 3:16 OR -kjv Isa 40:30-31 } } on 1:TEXT:-kjv *:#: { set %bbotfile $read -s $+ $2 $mircdirAddOns\Bible\bookname.txt if (%bbotfile == $null) { msg $chan No such book: $2 | goto end } set %bbotfile %bbotfile $+ .txt if ( $chr(45) isin $3 ) { set %bbotchapverse $gettok($3,1,45) set %bbotmulti $gettok($3,2,45) set %bbotchap $gettok(%bbotchapverse,1,58) set %bbotverse $gettok(%bbotchapverse,2,58) %bbotmultidif = %bbotmulti - %bbotverse if (%bbotmultidif > 3) set %bbotmultidif 3 set %bbotcount 0 :goback if (%bbotcount <= %bbotmultidif) { %bbotCurVerse = %bbotverse + %bbotcount set %bbotCurVer $read -s $+ %bbotchap $+ : $+ %bbotCurVerse $mircdirAddOns\Bible\kjv\ $+ %bbotfile if (%bbotCurVer == $null) { msg $chan No such chap/verse: %bbotchap $+ : $+ %bbotCurVerse | goto end } msg $chan $read -s $+ $2 $mircdirAddOns\Bible\index.txt %bbotchap $+ : $+ %bbotCurVerse > %bbotCurVer (KJV) inc %bbotcount goto goback } else goto end } set %bbotCurVer $read -s $+ $3 $mircdirAddOns\Bible\kjv\ $+ %bbotfile if (%bbotCurVer == $null) { msg $chan No such chap/verse: $3 | goto end } msg $chan $read -s $+ $2 $mircdirAddOns\Bible\index.txt $3 > %bbotCurVer (KJV) :end unset %bbot* } on 1:TEXT:-kjv *:?: { set %bbotfile $read -s $+ $2 $mircdirAddOns\Bible\bookname.txt if (%bbotfile == $null) { msg $nick No such book: $2 | goto end } set %bbotfile %bbotfile $+ .txt if ( $chr(45) isin $3 ) { set %bbotchapverse $gettok($3,1,45) set %bbotmulti $gettok($3,2,45) set %bbotchap $gettok(%bbotchapverse,1,58) set %bbotverse $gettok(%bbotchapverse,2,58) %bbotmultidif = %bbotmulti - %bbotverse if (%bbotmultidif > 3) set %bbotmultidif 3 set %bbotcount 0 :goback if (%bbotcount <= %bbotmultidif) { %bbotCurVerse = %bbotverse + %bbotcount set %bbotCurVer $read -s $+ %bbotchap $+ : $+ %bbotCurVerse $mircdirAddOns\Bible\kjv\ $+ %bbotfile if (%bbotCurVer == $null) { msg $nick No such chap/verse: %bbotchap $+ : $+ %bbotCurVerse | goto end } msg $nick $read -s $+ $2 $mircdirAddOns\Bible\index.txt %bbotchap $+ : $+ %bbotCurVerse > %bbotCurVer (KJV) inc %bbotcount goto goback } else goto end } set %bbotCurVer $read -s $+ $3 $mircdirAddOns\Bible\kjv\ $+ %bbotfile if (%bbotCurVer == $null) { msg $nick No such chap/verse: $3 | goto end } msg $nick $read -s $+ $2 $mircdirAddOns\Bible\index.txt $3 > %bbotCurVer (KJV) :end unset %bbot* } on 1:CHAT:-kjv *: { if ($group(#dccline) == on) { %temp.com = /relay } else { %temp.com = /msg = $+ $nick } set %bbotfile $read -s $+ $2 $mircdirAddOns\Bible\bookname.txt if (%bbotfile == $null) { msg = $+ $nick No such book: $2 | goto end } set %bbotfile %bbotfile $+ .txt if ( $chr(45) isin $3 ) { set %bbotchapverse $gettok($3,1,45) set %bbotmulti $gettok($3,2,45) set %bbotchap $gettok(%bbotchapverse,1,58) set %bbotverse $gettok(%bbotchapverse,2,58) %bbotmultidif = %bbotmulti - %bbotverse if (%bbotmultidif > 3) set %bbotmultidif 3 set %bbotcount 0 :goback if (%bbotcount <= %bbotmultidif) { %bbotCurVerse = %bbotverse + %bbotcount set %bbotCurVer $read -s $+ %bbotchap $+ : $+ %bbotCurVerse $mircdirAddOns\Bible\kjv\ $+ %bbotfile if (%bbotCurVer == $null) { msg = $+ $nick No such chap/verse: %bbotchap $+ : $+ %bbotCurVerse | goto end } %temp.com $read -s $+ $2 $mircdirAddOns\Bible\index.txt %bbotchap $+ : $+ %bbotCurVerse > %bbotCurVer (KJV) inc %bbotcount goto goback } else goto end } set %bbotCurVer $read -s $+ $3 $mircdirAddOns\Bible\kjv\ $+ %bbotfile if (%bbotCurVer == $null) { msg = $+ $nick No such chap/verse: $3 | goto end } %temp.com $read -s $+ $2 $mircdirAddOns\Bible\index.txt $3 > %bbotCurVer (KJV) :end unset %bbot* } alias kjv { if ($server == $null && $chat($active) == $null) { set %bbotacmnd echo 12 -a } else { set %bbotacmnd say } set %bbotfile $read -s $+ $1 $mircdirAddOns\Bible\bookname.txt if (%bbotfile == $null) { echo 4 -a No such book: $1 | goto end } set %bbotfile %bbotfile $+ .txt if ( $chr(45) isin $2 ) { set %bbotchapverse $gettok($2,1,45) set %bbotmulti $gettok($2,2,45) set %bbotchap $gettok(%bbotchapverse,1,58) set %bbotverse $gettok(%bbotchapverse,2,58) %bbotmultidif = %bbotmulti - %bbotverse if (%bbotmultidif > 3) set %bbotmultidif 3 set %bbotcount 0 :goback if (%bbotcount <= %bbotmultidif) { %bbotCurVerse = %bbotverse + %bbotcount set %bbotCurVer $read -s $+ %bbotchap $+ : $+ %bbotCurVerse $mircdirAddOns\Bible\kjv\ $+ %bbotfile if (%bbotCurVer == $null) { echo 4 -a No such chap/verse: %bbotchap $+ : $+ %bbotCurVerse | goto end } %bbotacmnd $read -s $+ $2 $mircdirAddOns\Bible\index.txt %bbotchap $+ : $+ %bbotCurVerse > %bbotCurVer (KJV) inc %bbotcount goto goback } else goto end } set %bbotCurVer $read -s $+ $2 $mircdirAddOns\Bible\kjv\ $+ %bbotfile if (%bbotCurVer == $null) { echo 4 -a No such chap/verse: $2 | goto end } %bbotacmnd $read -s $+ $1 $mircdirAddOns\Bible\index.txt $2 > %bbotCurVer (KJV) :end unset %bbot* } on 1:START: { unset %bbot* | if ($findfile($mircdir\AddOns\Bible\kjv,1jo.txt,1) == $null) { echo 4 -a BibleBot verse files not found! | echo 4 -s If you want to be able to use the BibleBot to recite Bible verses you must download the Bible verse files at http://www.c-script.com/download.shtm } } #kjv end menu status { &Bible Adn .&Help:biblehelp .- .&Books ..&KJV ...&On:.enable #kjv ...&Off:.disable #kjv } menu channel { &Bible Adn .&Help:biblehelp .- .&Books ..&KJV ...&On:.enable #kjv ...&Off:.disable #kjv }